<section class="Hui-container">
	<div class="Hui-wraper">	
		<div id="a-education">		
			<h2>教育背景</h2>
			<h5>*是必填信息</h5>
			<div class="line"></div>
			<br>
			<form method="post" action="{:U('Aeducation/save')}" id="education_form" class="form form-horizontal responsive">	
				<div class="row cl">				
					<label class="form-label col-xs-2">*高中：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" maxlength="50" name="highschool" id="highschool" datatype="en-ch" nullmsg="高中不能为空">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>		
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">*毕业时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2008-06-30" name="ey_highschool" id="ey_highschool" datatype="date" nullmsg="毕业时间不得为空">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>	
				<br>
				<h3>大学以上教育经历（包括大学）</h3>
				<br>	
				<h4>教育经历1</h4>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">学校：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="学校名" name="edu1" id="edu1" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">		
					<label class="form-label col-xs-2">学位：</label>
					<div class="formControls col-xs-5"> 
						<span class="select-box">
							<select class="select" size="1" id ="degree_edu1" name="degree_edu1" datatype="*" ignore="ignore">
								<option value="" selected>请选择你的学位</option>
								<option value="1">本科</option>
								<option value="2">硕士</option>
								<option value="3">博士</option>
								<option value="4">交换生</option>
								<option value="5">其他</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">专业：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" maxlength="50" placeholder="请填写你的专业" name="major_edu1" id="major_edu1" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">入学时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2009-08-31" name="by_edu1" id="by_edu1" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>				
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">毕业时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2013-06-31" name="ey_edu1" id="ey_edu1" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">cumulative GPA：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="如：3.8" maxlength="6" name="gpa_edu1" id="gpa_edu1" datatype="decimal" ignore="ignore">
					out of <input type="text" class="input-text" placeholder="如：4.0" maxlength="6" name="gpa_total_edu1" id="gpa_total_edu1" datatype="decimal" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>	
				<h4>教育经历2</h4>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">学校：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="学校名" name="edu2" id="edu2" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">		
					<label class="form-label col-xs-2">学位：</label>
					<div class="formControls col-xs-5"> 
						<span class="select-box">
							<select class="select" size="1" id ="degree_edu2" name="degree_edu2" datatype="*" ignore="ignore">
								<option value="" selected>请选择你的学位</option>
								<option value="1">本科</option>
								<option value="2">硕士</option>
								<option value="3">博士</option>
								<option value="4">交换生</option>
								<option value="5">其他</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">专业：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" maxlength="50" placeholder="请填写你的专业" name="major_edu2" id="major_edu2" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">入学时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2009-08-31" name="by_edu2" id="by_edu2" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>				
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">毕业时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2013-06-30" name="ey_edu2" id="ey_edu2" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">cumulative GPA：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="如：3.8" maxlength="6" name="gpa_edu2" id="gpa_edu2" datatype="decimal" ignore="ignore">
					out of <input type="text" class="input-text" placeholder="如：4.0" maxlength="6" name="gpa_total_edu2" id="gpa_total_edu2" datatype="decimal" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>	
				<h4>教育经历3</h4>
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">学校：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="学校名" name="edu3" id="edu3" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">		
					<label class="form-label col-xs-2">学位：</label>
					<div class="formControls col-xs-5"> 
						<span class="select-box">
							<select class="select" size="1" id ="degree_edu3" name="degree_edu3" datatype="*" ignore="ignore">
								<option value="" selected>请选择你的学位</option>
								<option value="1">本科</option>
								<option value="2">硕士</option>
								<option value="3">博士</option>
								<option value="4">交换生</option>
								<option value="5">其他</option>
							</select>
						</span> 
					</div>
					<div class="col-xs-5"> </div>
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">专业：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" maxlength="50" placeholder="请填写你的专业" name="major_edu3" id="major_edu3" datatype="en-ch" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">入学时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2009-08-31" name="by_edu3" id="by_edu3" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>				
				<br>
				<div class="row cl">				
					<label class="form-label col-xs-2">毕业时间：</label>
					<div class="formControls col-xs-5"> 				
						<input type="text" class="input-text" placeholder="例如：2013-06-30" name="ey_edu3" id="ey_edu3" datatype="date" ignore="ignore">		
					</div>
					<div class="col-xs-5"> </div>				
				</div>	
				<br>
				<div class="row cl">
					<label class="form-label col-xs-2">cumulative GPA：</label>
					<div class="formControls col-xs-5">
						<input type="text" class="input-text" placeholder="3.8" maxlength="6" name="gpa_edu3" id="gpa_edu3" datatype="decimal" ignore="ignore">
					out of <input type="text" class="input-text" placeholder="4.0" maxlength="6" name="gpa_total_edu3" id="gpa_total_edu3" datatype="decimal" ignore="ignore">
					</div>
					<div class="col-xs-5"> </div>
				</div>
				<br>
				<div class="row cl">
					<div class="col-xs-10 col-xs-offset-2">
						<a href="{:U('Acontact/index')}" class="btn btn-warning radius previous_form">上一步</a>
						<input class="btn btn-primary" type="submit" value="&nbsp;&nbsp;保存&下一步&nbsp;&nbsp;">
					</div>
				</div>
			</form>		
		</div>
	</div>
</section>

<script>
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
	$("#education_form").Validform({
		tiptype:2
	});
	document.getElementById('highschool').value="{$data.highschool}";
	document.getElementById('ey_highschool').value="{$data.ey_highschool}";
	document.getElementById('edu3').value="{$data.edu3}";
	if("{$data.by_edu3}"!="0000-00-00")
		document.getElementById('by_edu3').value="{$data.by_edu3}";
	if("{$data.ey_edu3}"!="0000-00-00")
		document.getElementById('ey_edu3').value="{$data.ey_edu3}";
	document.getElementById('major_edu3').value="{$data.major_edu3}";
	document.getElementById('edu2').value="{$data.edu2}";
	if("{$data.by_edu2}"!="0000-00-00")
		document.getElementById('by_edu2').value="{$data.by_edu2}";
	if("{$data.ey_edu2}"!="0000-00-00")
		document.getElementById('ey_edu2').value="{$data.ey_edu2}";
	document.getElementById('major_edu2').value="{$data.major_edu2}";
	document.getElementById('edu1').value="{$data.edu1}";
	if("{$data.by_edu1}"!="0000-00-00")
		document.getElementById('by_edu1').value="{$data.by_edu1}";
	if("{$data.ey_edu1}"!="0000-00-00")
		document.getElementById('ey_edu1').value="{$data.ey_edu1}";
	document.getElementById('major_edu1').value="{$data.major_edu1}";	
	if("{$data.gpa_edu3}">0)
		document.getElementById('gpa_edu3').value="{$data.gpa_edu3}";
	if("{$data.gpa_edu2}">0)
		document.getElementById('gpa_edu2').value="{$data.gpa_edu2}";
	if("{$data.gpa_edu1}">0)
		document.getElementById('gpa_edu1').value="{$data.gpa_edu1}";
	if("{$data.gpa_total_edu3}">0)
		document.getElementById('gpa_total_edu3').value="{$data.gpa_total_edu3}";
	if("{$data.gpa_total_edu2}">0)
		document.getElementById('gpa_total_edu2').value="{$data.gpa_total_edu2}";
	if("{$data.gpa_total_edu1}">0)
		document.getElementById('gpa_total_edu1').value="{$data.gpa_total_edu1}";
	for(var i=0;i<document.getElementById('degree_edu1').options.length;i++) {  
        if(document.getElementById('degree_edu1').options[i].value =="{$data.degree_edu1}") {  
        	document.getElementById('degree_edu1').options[i].selected = true;  
            break;  
        }  
    } 
	for(var i=0;i<document.getElementById('degree_edu2').options.length;i++) {  
        if(document.getElementById('degree_edu2').options[i].value =="{$data.degree_edu2}") {  
        	document.getElementById('degree_edu2').options[i].selected = true;  
            break;  
        }  
    }
	for(var i=0;i<document.getElementById('degree_edu3').options.length;i++) {  
        if(document.getElementById('degree_edu3').options[i].value =="{$data.degree_edu3}") {  
        	document.getElementById('degree_edu3').options[i].selected = true;  
            break;  
        }  
    }
	
});
</script>	
		